package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Volunteer;
import com.ruoyi.system.mapper.VolunteerMapper;
import com.ruoyi.system.service.VolunteerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VolunteerServiceImpl implements VolunteerService {

    @Autowired
    private VolunteerMapper volunteerMapper;

    @Override
    public Volunteer selectVolunteerOne(Volunteer volunteer) {
        return volunteerMapper.selectVolunteerOne(volunteer);
    }

    @Override
    public List<Volunteer> selectVolunteerList(Volunteer volunteer) {
        return volunteerMapper.selectVolunteerList(volunteer);
    }

    @Override
    public List<Volunteer> selectVolunteerAll() {
        return volunteerMapper.selectVolunteerAll();
    }

    @Override
    public Volunteer selectVolunteerById(Long vId) {
        return volunteerMapper.selectVolunteerById(vId);
    }

    @Override
    public int deleteVolunteerById(Long vId) {
        return volunteerMapper.deleteVolunteerById(vId);
    }

    @Override
    public int deleteVolunteerByIds(Long[] vIds) {
        return volunteerMapper.deleteVolunteerByIds(vIds);
    }

    @Override
    public int updateVolunteer(Volunteer volunteer) {
        return volunteerMapper.updateVolunteer(volunteer);
    }

    @Override
    public int insertVolunteer(Volunteer volunteer) {
        return volunteerMapper.insertVolunteer(volunteer);
    }
}
